﻿using Cheems.Control.Models.Chat;
using Cheems.Interface.Models.UserManagement;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace Cheems.Control.Controls
{
    public class SingleChat : UserControl
    {

        /// <summary>
        /// 历史消息
        /// </summary>
        public ChatHistory ChatHistory
        {
            get { return (ChatHistory)GetValue(ChatHistoryProperty); }
            set { SetValue(ChatHistoryProperty, value); }
        }

        // Using a DependencyProperty as the backing store for ChatHistory.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ChatHistoryProperty =
            DependencyProperty.Register("ChatHistory", typeof(ChatHistory), typeof(SingleChat), new PropertyMetadata(new ChatHistory()));




        public CornerRadius CornerRadius
        {
            get { return (CornerRadius)GetValue(CornerRadiusProperty); }
            set { SetValue(CornerRadiusProperty, value); }
        }
        public static readonly DependencyProperty CornerRadiusProperty =
            DependencyProperty.Register("CornerRadius", typeof(CornerRadius), typeof(SingleChat), new PropertyMetadata(new CornerRadius(5)));



    }
}
